perm Permutations in Sn
for example, sigma=perm({[1 24 20],[2 14 9],[3 11 13],[4 18 23],[5 21 17],[6 7 10],[8 16 12],[15 19 22]});
perm Properties:
list - the permutation as a list of the outputs from inputs 1,..,n
cycles - the permutation as a cell array of vectors representing
cycles
n - the size of the set the permutation acts on
numCycles - the number of cycles in the permutation
perm Methods:
perm - construct a permutation object given a permutation in list or cycle
form
char - output permutation as string of cycles
disp - display permutation as string of cycles
mtimes - multiply permutations left to right
mpower - raise permutation to integer power
action - act permutation on element of {1,..,n}
subsref - act permutation on element of {1,..,n} using function
notation
end - used for last index in list